<?php /** @noinspection PhpComposerExtensionStubsInspection */
/**
 * Created by PhpStorm.
 * User: 35906
 * Date: 18.10.23
 * Time: 23:18
 */
$arr = include '23889.php';
$idiom = include "idiom.php";
foreach ($arr as $word){
    $first_word = mb_substr($word,0,1,'utf-8');
    if(!in_array($word,$idiom[$first_word]??[])){
        $idiom[$first_word][] = $word;
    }
}
$ch = fopen('idiom.php','w');
fwrite($ch,'<?php return '.var_export($idiom,true).';');
fclose($ch);
var_dump('哈哈哈');
